#parse("/user/admin/inc/top.htm")
<div class="clearfix"></div>
<div class="MainPannel">
<script type="text/javascript" src="/js/checkLegal.js"></script>
<script language="JavaScript" src="/js/forbidNew.js" type="text/JavaScript"></script>
<script type="text/javascript" src="/js/swfobject.js"></script>
<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="/ckeditor/adapters/jquery.js"></script>
<script type="text/javascript" src="/ckeditor/_samples/sample.js"></script>
<script type="text/javascript">
$(function(){
	$('#content').ckeditor();
});

function doSave(){
	if(doCheck()){
		//if(EditForm.cid.value!="")EditForm.parameter.value="update";
		//EditForm.submit();
		//document.getElementById("EditForm").submit();
		return true;
	}else{
		return false;	
	}
}

function doCheck()
{
	var key=document.getElementById("EditForm").qq.value;
	if(key==""||!isChinese(key))
	{
		alert("真实姓名输入有误");
		document.getElementById("EditForm").qq.focus();
		return false;
	}
	key=document.getElementById("EditForm").intro.value;
	if(document.getElementById("EditForm").intro.value=="")
	{
		alert("单位不能为空！");
		document.getElementById("EditForm").intro.focus();
		return false;
	}
	key=document.getElementById("EditForm").email.value;
	if(key==""||!isEmail(key))
	{
		alert("电子邮箱输入有误");
		document.getElementById("EditForm").email.focus();
		return false;
	}
	
	key=document.getElementById("EditForm").sex.value;
	if(key=="")
	{
		alert("请选择性别");
		document.getElementById("EditForm").sex.focus();
		return false;
	}
	key=document.getElementById("EditForm").tel.value;
	if(key==""||!isChinaMob(key))
	{
		alert("手机输入有误");
		document.getElementById("EditForm").tel.focus();
		return false;
	}
	key=document.getElementById("EditForm").tagimg.value;
	if(key==""||!isTel(key))
	{
		alert("电话输入有误");
		document.getElementById("EditForm").tagimg.focus();
		return false;
	}
	return true;
}

function changeDetailSetting()
{
	document.getElementById("detailSetting").style.display=(document.getElementById("detailSetting").style.display=="none"?"":"none");
}
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td height="38" align="center"><table width="98%" height="34" border="0" cellpadding="0" cellspacing="0">
          <tr>
              <td width="40" align="right"><img src="/images/list.gif" width="32" height="32" /></td>
              <td class="titletxt">个人信息设置</td>
          </tr>
        </table></td>
    </tr>
</table>
<form id="EditForm" name="EditForm" method="post" action="/blogUser.do" onsubmit="return doSave()">
 <input type="hidden" name="parameter" value="saveSettingP" />
 <input type="hidden" name="cid" value="$!cid" />
  <table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
    <tr>
      <td width="15%" align="right"> 用 户 名 </td>
      <td colspan="3" align="left">$!username</td>
    </tr>
    <tr>
      <td width="15%" align="right"> 真实姓名 </td>
      <td align="left"><input name="qq" type="text" id="qq" value="$!qq" />
          <font color="red">*</font></td>
      <td width="15%" align="right"> 单位 </td>
      <td align="left"><input name="intro" type="text" id="intro" value="$!intro" />
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="15%" align="right"> Email地址 </td>
      <td align="left"><input name="email" type="text" id="email" value="$!email" /> <font color="#FF0000">*</font>
          </td>
      <td width="15%" align="right"> 性 别 </td>
      <td align="left">
			<select name="sex">
				<option value="" class="test">选择</option>
				<option value="男" #if($sex.equals("男")) selected #end>男</option>
				<option value="女" #if($sex.equals("女")) selected #end>女</option>
			</select>
				<font color="#FF0000">*</font></td>
    </tr>
    <tr>
      <td width="15%" align="right"> 手 机 </td>
      <td align="left"><input name="tel" type="text" id="tel" value="$!tel"><font color="red">*</font></td>
      <td width="15%" align="right"> 电 话 </td>
      <td align="left"><input name="tagimg" type="text" id="tagimg" value="$!tagimg"/>
                <font color="#FF0000">*格式区号-号码</font></td>
    </tr>
		<tr>
			<td width="15%" align="right" valign="top"> 专家成果 </td>
			<td colspan="3">
				<textarea name="achievement" id="content" style="width:100%">$!achievement</textarea>
			</td>
		</tr>
		<!--
	  <tr>
			<td></td>
      <td align="left"><a href="javascript:void(0)" onClick="changeDetailSetting()">详细设置属性设置&gt;&gt;</a></td>
    </tr>
		-->
	  <tr>
      <td align="left" colspan="4">
			<table width="100%" border="0" id="detailSetting" style="display:none">
    <tr>
      <td width="30%" align="right"> 网页meta描述</td>
      <td><input name="metadescription" type="text" id="metadescription" value="$!metadescription">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 网页meta关键字 </td>
      <td><input name="metakeyword" type="text" id="metakeyword" value="$!metakeyword">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 模板</td>
      <td><input name="template" type="text" id="template" value="$!template">
          <font color="red">*查看样板</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 首页显示条数 </td>
      <td><input name="firtpagenum" type="text" id="firtpagenum" value="$!firtpagenum">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 前台列表显示条数</td>
      <td><input name="listnum" type="text" id="listnum" value="$!listnum">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 管理列表显示条数</td>
      <td><input name="managelistnum" type="text" id="managelistnum" value="$!managelistnum">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 最新留言信息条数</td>
      <td><input name="newmessagenum" type="text" id="newmessagenum" value="$!newmessagenum">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 阅读排行榜条数</td>
      <td><input name="topreadnum" type="text" id="topreadnum" value="$!topreadnum">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 评论排行榜条数</td>
      <td><input name="topreviewnum" type="text" id="topreviewnum" value="$!topreviewnum">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 允许评论</td>
      <td><input name="enablereview" type="text" id="enablereview" value="$!enablereview">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 允许邮件通知</td>
      <td><input name="enableemail" type="text" id="enableemail" value="$!enableemail">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 首页是否显示内容</td>
      <td><input name="showcontent" type="text" id="showcontent" value="$!showcontent">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 显示文章累计数</td>
      <td><input name="totalnumdisplay" type="text" id="totalnumdisplay" value="$!totalnumdisplay">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 编辑器类型</td>
      <td><input name="editortype" type="text" id="editortype" value="$!editortype">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 控制显示</td>
      <td><input name="controldisplay" type="text" id="controldisplay" value="$!controldisplay">
          <font color="red">*</font></td>
    </tr>
    <tr>
      <td width="30%" align="right"> 加入日期</td>
      <td>$!inputtime</td>
    </tr>
    <tr>
      <td width="30%" align="right"> 访问数</td>
      <td>$!readtimes</td>
    </tr>
    <tr>
      <td width="30%" align="right"> 状态</td>
      <td>$!status</td>
    </tr>
      </table></td>
    </tr>
		<tr>
      <td colspan="4" align="center" height="50">
				<input type="submit" name="Submit" value="保存" />&nbsp;
				<input type="reset" name="Reset" value="重置" />
			</td>
      </tr>
  </table>
</form>

    </td>
  </tr>
</table>
	<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
#parse("/user/admin/inc/bottom.htm")
</body>
</html>
#if($msg)
<script>
alert('$!msg');
</script>
#end